<div class="row">
    <div class="col-xs-12">
        <div class="panel panel-midnightblue">
            <div class="panel-body">
                <form action="" class="form-horizontal row-fluid"  data-validate="parsley" id="validate-form">
                	<div class="row">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >卡种名称:</label>
                    		<div class="col-sm-8">
                    			<input type="text"  value="{$model.card_name}"  placeholder="卡种名称"   required="required"   class="form-control" name="card_name"/>
                    		</div>
                   		 </div>
                	</div>
                	
                	<div class="row">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >卡种类型:</label>
                    		<div class="col-sm-8">
                    			<select class="form-control"  disabled>
                    				<option  value="2" {eq name="model.card_type"  value="1" }selected{/eq} >次卡</option>
                    				<option  value="1" {eq name="model.card_type"  value="2" }selected{/eq} >期限卡</option>
                    				<option  value="3" {eq name="model.card_type"  value="3" }selected{/eq} >储值卡</option>
                    				<option  value="4" {eq name="model.card_type"  value="4" }selected{/eq} >错峰卡</option>
                    			</select>
                    		</div>
                   		 </div>
                	</div>
                	{eq name="model.card_type" value="1"}
	                	<!--次卡-->
	                	<div id="card_type_1" style="display:none">
	                		<div class="row">
	                		 	<div class="form-group">
		                    		<label class="col-sm-3 control-label" >有效天数:</label>
		                    		<div class="col-sm-8">
		                    			<input type="number"  data-min="1" name="expiry_date" data-required="true" value="{$model.expiry_date}"   data-type="digits"  class="form-control">
		                    		</div>
			                    </div>
	                		</div>
	                		
	                		<div class="row">
	                		 	<div class="form-group">
		                    		<label class="col-sm-3 control-label" >次数:</label>
		                    		<div class="col-sm-8">
		                    			<input type="number" data-min="1"  name="able_count" data-required="true" value="{$model.able_count}"   data-type="digits"  class="form-control">
		                    		</div>
			                    </div>
	                		</div>
	                		
	                		<div class="row">
	                		 	<div class="form-group">
		                    		<label class="col-sm-3 control-label has-error" >售价(元):</label>
		                    		<div class="col-sm-8">
		                    			<input type="text" data-min="0.01"  name="price" data-required="true" data-type="money" value="{$model.price}" class="form-control">
		                    		</div>
			                    </div>
	                		</div>
	                	</div>
                	{/eq}
                	{eq name="model.card_type" value="2"}
                	 <!--期限卡-->
                	<div id="card_type_2" style="display:none">
                		<div class="row">
                		 	<div class="form-group">
	                    		<label class="col-sm-3 control-label" >有效天数:</label>
	                    		<div class="col-sm-8">
	                    			<input type="number" data-min="1"  name="expiry_date" data-required="true" value="{$model.expiry_date}"   data-type="digits"  class="form-control">
	                    		</div>
		                    </div>
                		</div>
                		
                		<div class="row">
                		 	<div class="form-group">
	                    		<label class="col-sm-3 control-label has-error" >售价(元):</label>
	                    		<div class="col-sm-8">
	                    			<input type="text"  data-min="0.01"   name="price"  value="{$model.price}" data-required="true" data-type="money" value="0" class="form-control">
	                    		</div>
		                    </div>
                		</div>
                	</div> 
                	{/eq}
                	
                	{eq name="model.card_type" value="3"}
                	<!--储值卡-->
                	<div id="card_type_3" style="display:none">
                		<div class="row">
                		 	<div class="form-group">
	                    		<label class="col-sm-3 control-label" >有效天数:</label>
	                    		<div class="col-sm-8">
	                    			<input type="number" data-min="1"   name="expiry_date" data-required="true" value="{$model.expiry_date}"   data-type="digits"  class="form-control">
	                    		</div>
		                    </div>
                		</div>
                		
                		<div class="row">
                		 	<div class="form-group">
	                    		<label class="col-sm-3 control-label" >金额:</label>
	                    		<div class="col-sm-8">
	                    			<input type="number"  data-min="0.01"  name="able_money" data-required="true" value="{$model.able_money}"   data-type="money"  class="form-control">
	                    		</div>
		                    </div>
                		</div>
                		
                		<div class="row">
                		 	<div class="form-group">
	                    		<label class="col-sm-3 control-label has-error" >售价(元):</label>
	                    		<div class="col-sm-8">
	                    			<input type="text" data-min="0.01"   name="price" data-required="true" data-type="money" value="{$model.price}" class="form-control">
	                    		</div>
		                    </div>
                		</div>
                	</div>
                	{/eq}
                	{eq name="model.card_type" value="4"}
                	<div id="card_type_4" style="display:none">
                		<div class="row">
                		 	<div class="form-group">
	                    		<label class="col-sm-3 control-label" >有效天数:</label>
	                    		<div class="col-sm-8">
	                    			<input type="number" data-min="1"   name="expiry_date" data-required="true" value="{$model.expiry_date}"   data-type="digits"  class="form-control">
	                    		</div>
		                    </div>
                		</div>
                		
                		<div class="row">
                		 	<div class="form-group">
	                    		<label class="col-sm-3 control-label" >错峰端:</label>
	                    		<div class="col-sm-2">
	                    			<input type="text" required="required" value="00:00"  id="time_1" class="form-control alarm" />
	                    		</div>
	                    		<div class="col-sm-2">
	                    			<input type="text" required="required" value="00:00"  id="time_2" class="form-control alarm" />
	                    		</div>
	                    		<div class="col-sm-2">
	                    			<input type="text" required="required" value="00:00"  id="time_3" class="form-control alarm" />
	                    		</div>
	                    		<div class="col-sm-2">
	                    			<input type="text" required="required" value="00:00"  id="time_4" class="form-control alarm" />
	                    		</div>
		                    </div>
                		</div>
                		<input type="hidden" value="{$model.time_sets}" name="time_sets" id="time_sets"/>
                	</div>
                	<div class="row">
                		 	<div class="form-group">
	                    		<label class="col-sm-3 control-label has-error" >售价(元):</label>
	                    		<div class="col-sm-8">
	                    			<input type="text" data-min="0.01"   name="price" data-required="true" data-type="money" value="{$model.price}" class="form-control">
	                    		</div>
		                    </div>
                	</div>
                	{/eq}
                	<div class="row">
                		 <div class="form-group">
                    		<label class="col-sm-3 control-label" >描述:</label>
                    		<div class="col-sm-8">
                    			<textarea  placeholder="描述"  rows="3"  class="form-control" name="descs">{$model.descs}</textarea>
                    		</div>
                   		 </div>
                	</div>
                    
                    <input type="hidden" name="id" value="{$model.id}" />
                    <input type="hidden" name="card_type" id="card_type" value="{$model.card_type}" />
                </div>
                
                <div class="panel-footer">
	                <div class="row">
	                    <div class="col-sm-8 col-sm-offset-3">
	                        <div class="btn-toolbar">
	                            <div class="row">
			                		 <div class="form-group">
			                    		<div class="col-sm-3">
			                    			 <div class="btn-primary btn" id="form-submit">提交</div>
			                    		</div>
			                    		<div class="col-sm-3">
			                    			 <div class="btn-default btn" data-dismiss="modal">关闭</div>
			                    		</div>
			                   		 </div>
	                			</div>
	                        </div>
	                    </div>
	                </div>
            	</div>
            	
            </div>
        </div>
    </div>
</div>
<script type='text/javascript' src='{$Think.GYM_VIEW_JS}gym_card/edit.js'></script>